<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>    
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>

 <link href="<c:url value="/resources/homepage.css" />" rel="stylesheet">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Addtask</title>
</head>
<body>
<form:form action="displayTask" method="post" modelAttribute="task">
	<div id="wrapper">
		<!-- ============ HEADER SECTION ============== -->
		<div id="header">
			<div id="headerlogo"></div>
		</div>
		<!-- ============ NAVIGATION SECTION ============== -->
		<div id="menubar">

			<ul>
<li><a href="Project">Projects</a></li>
					<li><a href="Backlog">Backlog</a></li>
					<li><a href="SprintPlanning">Sprint Planning</a></li>
					<li><a href="Storyboard1">Sprint Tracking</a></li>
					<li><a href="logout">Logout</a></li>
				</ul>
		</div>

		<!-- ============ MIDDLE SECTION ============== -->
		<div id="m1">
			<fieldset>
				<legend>
					<h3>Enter Task Details</h3>
				</legend>
				<table>
				<tr>
					
						<td>Task Title</td>
						<td><form:input path="task_title"/></td>
<!-- 						<td></td> -->
						<td>Status</td>
						<td><select path="listStatus">
	<option value="">-- Select status from List --</option>
	<c:forEach var="status" items="${listStatus}">
	<option value='<c:out value="${status.status_id}"/>'>
	<c:out value="${status.status_name}" />
	</option>
	</c:forEach>
</select></td>
					</tr>
					<tr>
						<td>Description</td>
						<td><form:input path="task_description" /></td>
						<td></td>
			<!-- 			<td>Planned Effort</td>
						<td><select path="listStoryPoint">
	<option value="">-- Select points from List --</option>
	<c:forEach var="points" items="${listStoryPoint}">
	<option value='<c:out value="${points.story_point_id}"/>'>
	<c:out value="${points.story_point}" />
	</option>
	</c:forEach>
</select></td> -->
					</tr>
					<tr>
						<td>Owner</td>
						<td><form:input path="task_owner"/></td>
						<td></td>
						<td>Actual Effort</td>
						<td><form:input path="actual_effort"/><font color="red">hrs</font></td>
					</tr>
					<tr>
						<td>Complexity</td>
						<td><form:input path="complexity_id"/></td>
					<td></td>
						<td>Remaining Effort</td>
						<td><form:input path="remaining_effort"/><font color="red">hrs</font></td>
						
					</tr>
								
 					<tr>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td>
					<input type="submit" value="BACK"></td>
<!-- 					<input type="submit" value="CANCEL" align="right"></td> -->
					
					</tr>
				</table>
			</fieldset>
		</div>
		
		<div id="footer">
			<p>Copyright &copy; 2014 - All Rights Reserved - Spring Computing
				Pvt. Ltd.</p>
		</div>
	</div>

</form:form>
</body>
</html>